package org.xiaoxi.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.xiaoxi.entity.Tinyurl;

import com.wcansoft.baseWeb.mybatis_plugin.dao.MybatisBaseDAO;

/**
 * Created by YanYang on 2016/6/18.
 */
public interface TinyurlDao extends MybatisBaseDAO<Tinyurl>{
	long insertUrl(Tinyurl tinyurl);
    Tinyurl getIdByUrl(@Param("url")String url);
    Tinyurl getUrlById(@Param("id")long id);
    int updateTinyUrl(@Param("id")long id,@Param("shortUrl")String shortUrl) ;
    Tinyurl getUrlByShortUrl(@Param("shortUrl")String shortUrl);
    //List<Tinyurl> getIdByUrls(@Param("urls")String urls);
    
    
    
}
